﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
    public class R箭体称重时多装少装产品记录表 : RTableBase
    {
        public R箭体称重时多装少装产品记录表(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort, string fisrtDrawingNum, string firstDrawingName,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;
            FisrtDrawingNum = fisrtDrawingNum;
            FirstDrawingName = firstDrawingName;
            RecordRemark = recordRemark;
        }
        public override string FormName { get; protected set; } = "箭体称重时多装少装产品记录表";


        #region A4_代号
        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "代号";
 
        #endregion

        #region A5_名称
        public override string FirstDrawingName_DisplayName { get; protected set; } = "名称";
      
        #endregion
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="firstMeasuredValues"></param>
        /// <param name="secondMeasuredValues"></param>
        /// <param name="confirmResult"></param>
        /// <returns></returns>
        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string firstMeasuredValues, string secondMeasuredValues, string confirmResult)
        {

            entity.SetFirstMeasuredValues(firstMeasuredValues, "数量");
            entity.SetSecondMeasuredValues(secondMeasuredValues, "质量（Kg）");
            entity.SetConfirmResult(confirmResult, "是否多装");
            return entity;
        }
    }
}
